package com.chenwang.measure.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @松 on 2019/9/24 16:20
 * cors 服务器
 */
public class ServerBean implements Parcelable {
    private String name;
    private String ip;
    private String port;
    private String user;
    private String password;
    private String vpn;
    private String source;

    public String getVpn() {
        return vpn;
    }

    public void setVpn(String vpn) {
        this.vpn = vpn;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public ServerBean() {

    }

    protected ServerBean(Parcel in) {
        name = in.readString();
        ip = in.readString();
        port = in.readString();
        user = in.readString();
        password = in.readString();
    }

    public static final Creator<ServerBean> CREATOR = new Creator<ServerBean>() {
        @Override
        public ServerBean createFromParcel(Parcel in) {
            return new ServerBean(in);
        }

        @Override
        public ServerBean[] newArray(int size) {
            return new ServerBean[size];
        }
    };

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeString(ip);
        dest.writeString(port);
        dest.writeString(user);
        dest.writeString(password);
    }
}
